Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Window Manager >

Mac OS 8 Window Manager Reference


Window Resource IDs

Window resource IDs are changed with Appearance Manager 1.0. The Window Manager now provides many new standard, Appearance-compliant window resource IDs for your program.

You can use a window resource ID constant to create a window definition ID; see Window Definition IDs for more details.

Note that the standard Appearance-compliant resource ID constants kWindowDocumentDefProcResID , kWindowUtilityDefProcResID , and kWindowUtilitySideTitleDefProcResID specify windows with collapse boxes.

Note

Resource IDs 0 through 127 are reserved for use by the system.

enum {      
    kStandardWindowDefinition           = 0,
    kRoundWindowDefinition              = 1,
    kWindowDocumentDefProcResID         = 64,
    kWindowDialogDefProcResID           = 65,
    kWindowUtilityDefProcResID          = 66,
    kWindowUtilitySideTitleDefProcResID = 67,
    kFloatingWindowDefinition           = 124
};

Constant descriptions

kStandardWindowDefinition
Defines pre-Appearance standard document windows and dialog boxes. When mapping is enabled, this resource ID is mapped to kWindowDocumentDefProcResID or kWindowDialogDefProcResID. When mapped to kWindowDocumentDefProcResID , this produces an Appearance-compliant standard document window with no size box and no vertical or horizontal zoom box. When mapped to kWindowDialogDefProcResID , this produces an Appearance-compliant dialog box with no size box and a 3-pixel space between the dialog box's content and structure region.
kRoundWindowDefinition
Defines pre-Appearance standard desk-accessory style windows. This resource ID is not mapped to any Appearance-compliant resource ID when mapping is enabled.
kWindowDocumentDefProcResID
Defines Appearance-compliant standard document windows with a size box. Standard document windows created with this resource ID can use variation codes to create windows with vertical and horizontal zoom boxes. Available with Appearance 1.0 and later.
kWindowDialogDefProcResID
Defines Appearance-compliant dialog and alert boxes. Modal and movable modal dialog boxes created with this resource ID are displayed with no space between their content and structure region. Alert boxes created with this resource ID are displayed with a red-tinged border. Available with Appearance 1.0 and later.
kWindowUtilityDefProcResID
Defines Appearance-compliant utility (floating) windows with a top title bar and a size box. Available with Appearance 1.0 and later.
kWindowUtilitySideTitleDefProcResID
Defines Appearance-compliant utility (floating) windows with a side title bar and a size box. Available with Appearance 1.0 and later.
kFloatingWindowDefinition
Defines pre-Appearance utility (floating) windows. When mapping is enabled, this resource ID is mapped to kWindowUtilityDefProcResID or kWindowUtilitySideTitleDefProcResID. When mapped to kWindowUtilityDefProcResID , this produces an Appearance-compliant utility window with no size box until DrawGrowIcon is called. When mapped to kWindowUtilitySideTitleDefProcResID , it produces an Appearance-compliant utility window with a side title bar and no size box until DrawGrowIcon is called.

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |